class Strr{
	public static void main(String[] felight){
		String str1="felight";
		String str2="rocks";
		str1=str1.concat(str2);
		System.out.println(str1);

		char str=new String("Felight rocks").charAt(10);
		System.out.println(str);

		String str3=new String("Felight rocks").concat(" so does the students here");
		System.out.println(str3);
		
		boolean str4=new String("felight rocks").equalsIgnoreCase("felight rock");
		System.out.println(str4);

		int str5=new String("felight rocks").length();
		System.out.println(str5);

		String str6=new String("felight rocks").substring(3,6);
		System.out.println(str6);

		String str7=new String("FELight ROckS").toLowerCase();
		System.out.println(str7);

		String str8=new String("FELight ROckS").toUpperCase();
		System.out.println(str8);

		String str9=new String("felight    rocks  ").trim();
		System.out.println(str9);
		
		String[] array={"maher","vinod","mahesh","jay"};
		
		Arrays.sort(array);
		
		for(int i=0;i<array.length;i++)
			System.out.println(array[i]);
	}
}